import { Module } from '@nestjs/common';
import { PostService } from './post.service';
import { PostController } from './post.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PostEntity } from './entities/post.entity';
import { ScenicSpotEntity } from 'src/scenic-spot/entities/scenic-spot.entity';
import { UserLikeEntity } from 'src/user-like/entities/user-like.entity';
import { UserFavoriteEntity } from 'src/user-favorite/entities/user-favorite.entity';
import { CommentModule } from 'src/comment/comment.module';
import { ImageEntity } from 'src/image/entities/image.entity';
import { OssService } from 'src/common/oss/oss.service';
@Module({
  imports: [TypeOrmModule.forFeature([
  PostEntity,
  ScenicSpotEntity,           
  UserLikeEntity,
  UserFavoriteEntity,
    ImageEntity
]),
CommentModule
],
  controllers: [PostController],
  providers: [PostService,OssService],
})
export class PostModule {}